<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.7"/>
<title>BrainTrain: brtr::Bench Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">BrainTrain
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.7 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classbrtr_1_1_bench.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="classbrtr_1_1_bench-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">brtr::Bench Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="classbrtr_1_1_bench.html" title="Bench class, creates a bench Object. ">Bench</a> class, creates a bench Object.  
 <a href="classbrtr_1_1_bench.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_bench_8h_source.html">Bench.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for brtr::Bench:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classbrtr_1_1_bench.png" usemap="#brtr::Bench_map" alt=""/>
  <map id="brtr::Bench_map" name="brtr::Bench_map">
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a66ae6f45365c36daeabeed1a4b778d83"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbrtr_1_1_bench.html#a66ae6f45365c36daeabeed1a4b778d83">Bench</a> (const Vec3 &amp;pcenter=Vec3(0, 0, 0), const double plength=8)</td></tr>
<tr class="separator:a66ae6f45365c36daeabeed1a4b778d83"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad59e81ffbe90a7297bd5f256a54a234e"><td class="memItemLeft" align="right" valign="top">ref_ptr<br class="typebreak" />
&lt; PositionAttitudeTransform &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbrtr_1_1_bench.html#ad59e81ffbe90a7297bd5f256a54a234e">getHitbox</a> (const double alpha, double height=8)</td></tr>
<tr class="memdesc:ad59e81ffbe90a7297bd5f256a54a234e"><td class="mdescLeft">&#160;</td><td class="mdescRight">return the Hitbox of the <a class="el" href="classbrtr_1_1_bench.html" title="Bench class, creates a bench Object. ">Bench</a>  <a href="#ad59e81ffbe90a7297bd5f256a54a234e">More...</a><br /></td></tr>
<tr class="separator:ad59e81ffbe90a7297bd5f256a54a234e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9bd8ae1e6e48eb278206eff7102cac23"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbrtr_1_1_bench.html#a9bd8ae1e6e48eb278206eff7102cac23">Bench</a> (const <a class="el" href="classbrtr_1_1_bench.html">Bench</a> &amp;, const CopyOp &amp;copyop=CopyOp::SHALLOW_COPY)</td></tr>
<tr class="separator:a9bd8ae1e6e48eb278206eff7102cac23"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a22ffdb328f6dac6737108d0f7aa34f67"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbrtr_1_1_bench.html#a22ffdb328f6dac6737108d0f7aa34f67">~Bench</a> ()</td></tr>
<tr class="separator:a22ffdb328f6dac6737108d0f7aa34f67"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr class="memitem:a2813d4878b8a5ef09219323b2f6c9cf5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbrtr_1_1_bench.html#a2813d4878b8a5ef09219323b2f6c9cf5">initBench</a> (const double plength)</td></tr>
<tr class="memdesc:a2813d4878b8a5ef09219323b2f6c9cf5"><td class="mdescLeft">&#160;</td><td class="mdescRight">initialize the bench  <a href="#a2813d4878b8a5ef09219323b2f6c9cf5">More...</a><br /></td></tr>
<tr class="separator:a2813d4878b8a5ef09219323b2f6c9cf5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aafa199aa2218d57b290d99843a1443d4"><td class="memItemLeft" align="right" valign="top">ref_ptr&lt; Material &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbrtr_1_1_bench.html#aafa199aa2218d57b290d99843a1443d4">createIronMaterial</a> ()</td></tr>
<tr class="memdesc:aafa199aa2218d57b290d99843a1443d4"><td class="mdescLeft">&#160;</td><td class="mdescRight">create the material for iron objects  <a href="#aafa199aa2218d57b290d99843a1443d4">More...</a><br /></td></tr>
<tr class="separator:aafa199aa2218d57b290d99843a1443d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a57d6d3f038d3f0e8d5f8b83895a6670a"><td class="memItemLeft" align="right" valign="top">ref_ptr&lt; Material &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbrtr_1_1_bench.html#a57d6d3f038d3f0e8d5f8b83895a6670a">createWoodMaterial</a> ()</td></tr>
<tr class="memdesc:a57d6d3f038d3f0e8d5f8b83895a6670a"><td class="mdescLeft">&#160;</td><td class="mdescRight">create the material for wood objects  <a href="#a57d6d3f038d3f0e8d5f8b83895a6670a">More...</a><br /></td></tr>
<tr class="separator:a57d6d3f038d3f0e8d5f8b83895a6670a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aefe5a9043a63e13d83c31a42046c6912"><td class="memItemLeft" align="right" valign="top">ref_ptr&lt; Group &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbrtr_1_1_bench.html#aefe5a9043a63e13d83c31a42046c6912">createLeg</a> ()</td></tr>
<tr class="separator:aefe5a9043a63e13d83c31a42046c6912"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae17e8e692f6c6deb7b722b5df58dc04b"><td class="memItemLeft" align="right" valign="top">ref_ptr&lt; Group &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbrtr_1_1_bench.html#ae17e8e692f6c6deb7b722b5df58dc04b">createBar</a> ()</td></tr>
<tr class="separator:ae17e8e692f6c6deb7b722b5df58dc04b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0547e73d10f329b2a9b4453b6319f472"><td class="memItemLeft" align="right" valign="top">ref_ptr&lt; Group &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbrtr_1_1_bench.html#a0547e73d10f329b2a9b4453b6319f472">createSeat</a> (const double width)</td></tr>
<tr class="memdesc:a0547e73d10f329b2a9b4453b6319f472"><td class="mdescLeft">&#160;</td><td class="mdescRight">creates the seat  <a href="#a0547e73d10f329b2a9b4453b6319f472">More...</a><br /></td></tr>
<tr class="separator:a0547e73d10f329b2a9b4453b6319f472"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9956994e6a20cbbd0f0ce9eb6df25917"><td class="memItemLeft" align="right" valign="top">ref_ptr&lt; Group &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbrtr_1_1_bench.html#a9956994e6a20cbbd0f0ce9eb6df25917">createArmrest</a> (double radius, double width, double <a class="el" href="classbrtr_1_1_bench.html#a81188a60871201d741c288396430964d">length</a>, double totalwidth)</td></tr>
<tr class="memdesc:a9956994e6a20cbbd0f0ce9eb6df25917"><td class="mdescLeft">&#160;</td><td class="mdescRight">creates the armrest  <a href="#a9956994e6a20cbbd0f0ce9eb6df25917">More...</a><br /></td></tr>
<tr class="separator:a9956994e6a20cbbd0f0ce9eb6df25917"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a28443b856188050680a2c0ab4ad31a93"><td class="memItemLeft" align="right" valign="top">ref_ptr&lt; Geometry &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbrtr_1_1_bench.html#a28443b856188050680a2c0ab4ad31a93">createArmrestSidesFrontBack</a> (double radius, double width, int lsteps, int wsteps, bool flip=true)</td></tr>
<tr class="memdesc:a28443b856188050680a2c0ab4ad31a93"><td class="mdescLeft">&#160;</td><td class="mdescRight">creates the front/back for the armrest  <a href="#a28443b856188050680a2c0ab4ad31a93">More...</a><br /></td></tr>
<tr class="separator:a28443b856188050680a2c0ab4ad31a93"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afac56bea39f6e5e72140d4512dd711d3"><td class="memItemLeft" align="right" valign="top">ref_ptr&lt; Geometry &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbrtr_1_1_bench.html#afac56bea39f6e5e72140d4512dd711d3">createArmrestSidesLeftRight</a> (double <a class="el" href="classbrtr_1_1_bench.html#a81188a60871201d741c288396430964d">length</a>, double width, int lsteps, int wsteps, bool flip=true)</td></tr>
<tr class="memdesc:afac56bea39f6e5e72140d4512dd711d3"><td class="mdescLeft">&#160;</td><td class="mdescRight">creates the left/rigth for the armrest  <a href="#afac56bea39f6e5e72140d4512dd711d3">More...</a><br /></td></tr>
<tr class="separator:afac56bea39f6e5e72140d4512dd711d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a90c4ae616eb8d7bf669af2983ed3cd1d"><td class="memItemLeft" align="right" valign="top">ref_ptr&lt; DrawElementsUInt &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbrtr_1_1_bench.html#a90c4ae616eb8d7bf669af2983ed3cd1d">getPrimitiveSetforARectangle</a> (int lsteps, int wsteps)</td></tr>
<tr class="memdesc:a90c4ae616eb8d7bf669af2983ed3cd1d"><td class="mdescLeft">&#160;</td><td class="mdescRight">creates a primitives set for the getRectangle function  <a href="#a90c4ae616eb8d7bf669af2983ed3cd1d">More...</a><br /></td></tr>
<tr class="separator:a90c4ae616eb8d7bf669af2983ed3cd1d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a5ea108ad6ee96d487ac00ecacc383aa2"><td class="memItemLeft" align="right" valign="top">Vec3&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbrtr_1_1_bench.html#a5ea108ad6ee96d487ac00ecacc383aa2">center</a></td></tr>
<tr class="separator:a5ea108ad6ee96d487ac00ecacc383aa2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a81188a60871201d741c288396430964d"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbrtr_1_1_bench.html#a81188a60871201d741c288396430964d">length</a></td></tr>
<tr class="separator:a81188a60871201d741c288396430964d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa3da8798872d1c2d595c24a48a5cb427"><td class="memItemLeft" align="right" valign="top">ref_ptr&lt; Group &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbrtr_1_1_bench.html#aa3da8798872d1c2d595c24a48a5cb427">bench</a></td></tr>
<tr class="separator:aa3da8798872d1c2d595c24a48a5cb427"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><a class="el" href="classbrtr_1_1_bench.html" title="Bench class, creates a bench Object. ">Bench</a> class, creates a bench Object. </p>
<p>creates a bench with a given length at a given position. The length has to be between 2 and 30 </p><dl class="section author"><dt>Author</dt><dd>Marcel Felix </dd></dl>
<dl class="section version"><dt>Version</dt><dd>1.0 </dd></dl>
<dl class="section date"><dt>Date</dt><dd>2014</dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>GNU Public License. </dd></dl>

<p>Definition at line <a class="el" href="_bench_8h_source.html#l00024">24</a> of file <a class="el" href="_bench_8h_source.html">Bench.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a66ae6f45365c36daeabeed1a4b778d83"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">brtr::Bench::Bench </td>
          <td>(</td>
          <td class="paramtype">const Vec3 &amp;&#160;</td>
          <td class="paramname"><em>pcenter</em> = <code>Vec3(0,&#160;0,&#160;0)</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const double&#160;</td>
          <td class="paramname"><em>plength</em> = <code>8</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_bench_8cpp_source.html#l00007">7</a> of file <a class="el" href="_bench_8cpp_source.html">Bench.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a9bd8ae1e6e48eb278206eff7102cac23"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">brtr::Bench::Bench </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classbrtr_1_1_bench.html">Bench</a> &amp;&#160;</td>
          <td class="paramname"><em>copy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const CopyOp &amp;&#160;</td>
          <td class="paramname"><em>copyop</em> = <code>CopyOp::SHALLOW_COPY</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_bench_8cpp_source.html#l00018">18</a> of file <a class="el" href="_bench_8cpp_source.html">Bench.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a22ffdb328f6dac6737108d0f7aa34f67"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">brtr::Bench::~Bench </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_bench_8cpp_source.html#l00021">21</a> of file <a class="el" href="_bench_8cpp_source.html">Bench.cpp</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a9956994e6a20cbbd0f0ce9eb6df25917"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">ref_ptr&lt; Group &gt; brtr::Bench::createArmrest </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>radius</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>length</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>totalwidth</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>creates the armrest </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">radius</td><td>the distance between bench and armrest </td></tr>
    <tr><td class="paramname">width</td><td>width of the armrest </td></tr>
    <tr><td class="paramname">length</td><td>length of the armrest </td></tr>
    <tr><td class="paramname">totalwidth</td><td>width of the bar on the armrest </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_bench_8cpp_source.html#l00252">252</a> of file <a class="el" href="_bench_8cpp_source.html">Bench.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a28443b856188050680a2c0ab4ad31a93"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">ref_ptr&lt; Geometry &gt; brtr::Bench::createArmrestSidesFrontBack </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>radius</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>lsteps</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>wsteps</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>flip</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>creates the front/back for the armrest </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">radius</td><td>the distance between bench and armrest </td></tr>
    <tr><td class="paramname">width</td><td>width of the armrest </td></tr>
    <tr><td class="paramname">length</td><td>length of the armrest </td></tr>
    <tr><td class="paramname">flip</td><td>switch between front and back creation </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_bench_8cpp_source.html#l00140">140</a> of file <a class="el" href="_bench_8cpp_source.html">Bench.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="afac56bea39f6e5e72140d4512dd711d3"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">ref_ptr&lt; Geometry &gt; brtr::Bench::createArmrestSidesLeftRight </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>length</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>lsteps</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>wsteps</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>flip</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>creates the left/rigth for the armrest </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">radius</td><td>the distance between bench and armrest </td></tr>
    <tr><td class="paramname">width</td><td>width of the armrest </td></tr>
    <tr><td class="paramname">length</td><td>length of the armrest </td></tr>
    <tr><td class="paramname">flip</td><td>switch between front and back creation </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_bench_8cpp_source.html#l00084">84</a> of file <a class="el" href="_bench_8cpp_source.html">Bench.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ae17e8e692f6c6deb7b722b5df58dc04b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">ref_ptr&lt; Group &gt; brtr::Bench::createBar </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_bench_8cpp_source.html#l00331">331</a> of file <a class="el" href="_bench_8cpp_source.html">Bench.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="aafa199aa2218d57b290d99843a1443d4"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">ref_ptr&lt; Material &gt; brtr::Bench::createIronMaterial </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>create the material for iron objects </p>

<p>Definition at line <a class="el" href="_bench_8cpp_source.html#l00053">53</a> of file <a class="el" href="_bench_8cpp_source.html">Bench.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="aefe5a9043a63e13d83c31a42046c6912"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">ref_ptr&lt; Group &gt; brtr::Bench::createLeg </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_bench_8cpp_source.html#l00190">190</a> of file <a class="el" href="_bench_8cpp_source.html">Bench.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a0547e73d10f329b2a9b4453b6319f472"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">ref_ptr&lt; Group &gt; brtr::Bench::createSeat </td>
          <td>(</td>
          <td class="paramtype">const double&#160;</td>
          <td class="paramname"><em>width</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>creates the seat </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">width</td><td>the width/length of the Seat </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_bench_8cpp_source.html#l00212">212</a> of file <a class="el" href="_bench_8cpp_source.html">Bench.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a57d6d3f038d3f0e8d5f8b83895a6670a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">ref_ptr&lt; Material &gt; brtr::Bench::createWoodMaterial </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>create the material for wood objects </p>

<p>Definition at line <a class="el" href="_bench_8cpp_source.html#l00062">62</a> of file <a class="el" href="_bench_8cpp_source.html">Bench.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ad59e81ffbe90a7297bd5f256a54a234e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ref_ptr&lt; PositionAttitudeTransform &gt; brtr::Bench::getHitbox </td>
          <td>(</td>
          <td class="paramtype">const double&#160;</td>
          <td class="paramname"><em>alpha</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>height</em> = <code>8</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>return the Hitbox of the <a class="el" href="classbrtr_1_1_bench.html" title="Bench class, creates a bench Object. ">Bench</a> </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">alpha</td><td></td></tr>
    <tr><td class="paramname">height</td><td>the height of the hitbox. height &lt; 0 will use the height of the bench </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the hitbox as a PositionAttitudeTransform with the given alpha value </dd></dl>

<p>Definition at line <a class="el" href="_bench_8cpp_source.html#l00024">24</a> of file <a class="el" href="_bench_8cpp_source.html">Bench.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a90c4ae616eb8d7bf669af2983ed3cd1d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">ref_ptr&lt; DrawElementsUInt &gt; brtr::Bench::getPrimitiveSetforARectangle </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>lsteps</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>wsteps</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>creates a primitives set for the getRectangle function </p>
<p>parts of the function are copy/pasted from Chapter 7, CG1 Lecture Script by Frauke Sprengel</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">lsteps</td><td></td></tr>
    <tr><td class="paramname">wsteps</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a ref_ptr&lt;DrawElementsUInt&gt; containing the primitives set </dd></dl>

<p>Definition at line <a class="el" href="_bench_8cpp_source.html#l00071">71</a> of file <a class="el" href="_bench_8cpp_source.html">Bench.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a2813d4878b8a5ef09219323b2f6c9cf5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void brtr::Bench::initBench </td>
          <td>(</td>
          <td class="paramtype">const double&#160;</td>
          <td class="paramname"><em>plength</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>initialize the bench </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">plength</td><td>the length of the bench </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_bench_8cpp_source.html#l00360">360</a> of file <a class="el" href="_bench_8cpp_source.html">Bench.cpp</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="aa3da8798872d1c2d595c24a48a5cb427"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">ref_ptr&lt;Group&gt; brtr::Bench::bench</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_bench_8h_source.html#l00108">108</a> of file <a class="el" href="_bench_8h_source.html">Bench.h</a>.</p>

</div>
</div>
<a class="anchor" id="a5ea108ad6ee96d487ac00ecacc383aa2"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Vec3 brtr::Bench::center</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_bench_8h_source.html#l00105">105</a> of file <a class="el" href="_bench_8h_source.html">Bench.h</a>.</p>

</div>
</div>
<a class="anchor" id="a81188a60871201d741c288396430964d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double brtr::Bench::length</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_bench_8h_source.html#l00107">107</a> of file <a class="el" href="_bench_8h_source.html">Bench.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>header/<a class="el" href="_bench_8h_source.html">Bench.h</a></li>
<li>Objects/<a class="el" href="_bench_8cpp_source.html">Bench.cpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespacebrtr.html">brtr</a></li><li class="navelem"><a class="el" href="classbrtr_1_1_bench.html">Bench</a></li>
    <li class="footer">Generated on Thu Jul 17 2014 01:40:27 for BrainTrain by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
  </ul>
</div>
</body>
</html>
